﻿using Microsoft.UI.Xaml;

namespace WinUITest
{
    public partial class App : Application
    {
        private static Window? m_Window;
        public static Window MainWindow => m_Window ?? throw new System.InvalidOperationException();
        public App() => InitializeComponent();
        protected override void OnLaunched(LaunchActivatedEventArgs args)
        {
            m_Window = new MainWindow();
            m_Window.Activate();
        }
    }
}
